package truef.express.domain;

import java.util.HashMap;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name = "T_COMMODITIES")
@Entity
public class Courier extends BaseEntity{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2210753205021792354L;

	//用户名
	@Column(name = "NAME")
	String name;
	
	//价格
	@Column(name = "PRICE")
	double price;
	
	@ManyToOne
	@JoinColumn(name = "CourierServicesCompany_ID")
	ExpressCompany expresscompanys;
	
	//品牌
	@Column(name = "BRAND")
	String brand;
	
	public static HashMap<Integer,String> phonenumber = new HashMap<Integer,String>();
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	
	
	

}